package sicnu.cs.ich.user.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sicnu.cs.ich.user.mapper.RegionMapper;
import sicnu.cs.ich.user.service.IRegionService;

/**
 * @author 沈洋 邮箱:1845973183@qq.com
 * @create 2021/11/30-14:47
 **/
@Service
public class RegionServiceImpl implements IRegionService {
    @Autowired
    private RegionMapper regionMapper;
    @Override
    public boolean isExists(Integer regionId) {
        return regionMapper.countById(regionId)>0;
    }
}
